import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/page1',
        name: 'Page1',
        component: () => import(/* webpackChunkName: "about" */ '../views/Page1.vue')
    },
    {
        path: '/page2',
        name: 'Page2',
        component: () => import(/* webpackChunkName: "about" */ '../views/Page2.vue')
    },
    {
        path: '/rabbitmqDemo',
        name: 'rabbitmqDemo',
        component: () => import(/* webpackChunkName: "about" */ '../views/rabbitmqDemo/rabbitmqDemo.vue')
    },
    {
        path: '/html2word',
        name: 'html2word',
        component: () => import(/* webpackChunkName: "about" */ '../views/html2word/html2word.vue')
    }

]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router
